package org.example.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BorrowRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BorrowRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIsbnIsNull() {
            addCriterion("isbn is null");
            return (Criteria) this;
        }

        public Criteria andIsbnIsNotNull() {
            addCriterion("isbn is not null");
            return (Criteria) this;
        }

        public Criteria andIsbnEqualTo(String value) {
            addCriterion("isbn =", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnNotEqualTo(String value) {
            addCriterion("isbn <>", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnGreaterThan(String value) {
            addCriterion("isbn >", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnGreaterThanOrEqualTo(String value) {
            addCriterion("isbn >=", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnLessThan(String value) {
            addCriterion("isbn <", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnLessThanOrEqualTo(String value) {
            addCriterion("isbn <=", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnLike(String value) {
            addCriterion("isbn like", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnNotLike(String value) {
            addCriterion("isbn not like", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnIn(List<String> values) {
            addCriterion("isbn in", values, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnNotIn(List<String> values) {
            addCriterion("isbn not in", values, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnBetween(String value1, String value2) {
            addCriterion("isbn between", value1, value2, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnNotBetween(String value1, String value2) {
            addCriterion("isbn not between", value1, value2, "isbn");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andBorrowStateIsNull() {
            addCriterion("borrow_state is null");
            return (Criteria) this;
        }

        public Criteria andBorrowStateIsNotNull() {
            addCriterion("borrow_state is not null");
            return (Criteria) this;
        }

        public Criteria andBorrowStateEqualTo(String value) {
            addCriterion("borrow_state =", value, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateNotEqualTo(String value) {
            addCriterion("borrow_state <>", value, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateGreaterThan(String value) {
            addCriterion("borrow_state >", value, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateGreaterThanOrEqualTo(String value) {
            addCriterion("borrow_state >=", value, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateLessThan(String value) {
            addCriterion("borrow_state <", value, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateLessThanOrEqualTo(String value) {
            addCriterion("borrow_state <=", value, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateLike(String value) {
            addCriterion("borrow_state like", value, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateNotLike(String value) {
            addCriterion("borrow_state not like", value, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateIn(List<String> values) {
            addCriterion("borrow_state in", values, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateNotIn(List<String> values) {
            addCriterion("borrow_state not in", values, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateBetween(String value1, String value2) {
            addCriterion("borrow_state between", value1, value2, "borrowState");
            return (Criteria) this;
        }

        public Criteria andBorrowStateNotBetween(String value1, String value2) {
            addCriterion("borrow_state not between", value1, value2, "borrowState");
            return (Criteria) this;
        }

        public Criteria andLifeStateIsNull() {
            addCriterion("life_state is null");
            return (Criteria) this;
        }

        public Criteria andLifeStateIsNotNull() {
            addCriterion("life_state is not null");
            return (Criteria) this;
        }

        public Criteria andLifeStateEqualTo(String value) {
            addCriterion("life_state =", value, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateNotEqualTo(String value) {
            addCriterion("life_state <>", value, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateGreaterThan(String value) {
            addCriterion("life_state >", value, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateGreaterThanOrEqualTo(String value) {
            addCriterion("life_state >=", value, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateLessThan(String value) {
            addCriterion("life_state <", value, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateLessThanOrEqualTo(String value) {
            addCriterion("life_state <=", value, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateLike(String value) {
            addCriterion("life_state like", value, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateNotLike(String value) {
            addCriterion("life_state not like", value, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateIn(List<String> values) {
            addCriterion("life_state in", values, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateNotIn(List<String> values) {
            addCriterion("life_state not in", values, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateBetween(String value1, String value2) {
            addCriterion("life_state between", value1, value2, "lifeState");
            return (Criteria) this;
        }

        public Criteria andLifeStateNotBetween(String value1, String value2) {
            addCriterion("life_state not between", value1, value2, "lifeState");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdIsNull() {
            addCriterion("borrow_manager_id is null");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdIsNotNull() {
            addCriterion("borrow_manager_id is not null");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdEqualTo(Integer value) {
            addCriterion("borrow_manager_id =", value, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdNotEqualTo(Integer value) {
            addCriterion("borrow_manager_id <>", value, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdGreaterThan(Integer value) {
            addCriterion("borrow_manager_id >", value, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("borrow_manager_id >=", value, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdLessThan(Integer value) {
            addCriterion("borrow_manager_id <", value, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdLessThanOrEqualTo(Integer value) {
            addCriterion("borrow_manager_id <=", value, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdIn(List<Integer> values) {
            addCriterion("borrow_manager_id in", values, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdNotIn(List<Integer> values) {
            addCriterion("borrow_manager_id not in", values, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdBetween(Integer value1, Integer value2) {
            addCriterion("borrow_manager_id between", value1, value2, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andBorrowManagerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("borrow_manager_id not between", value1, value2, "borrowManagerId");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeIsNull() {
            addCriterion("pre_borrow_time is null");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeIsNotNull() {
            addCriterion("pre_borrow_time is not null");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeEqualTo(Date value) {
            addCriterion("pre_borrow_time =", value, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeNotEqualTo(Date value) {
            addCriterion("pre_borrow_time <>", value, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeGreaterThan(Date value) {
            addCriterion("pre_borrow_time >", value, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pre_borrow_time >=", value, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeLessThan(Date value) {
            addCriterion("pre_borrow_time <", value, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeLessThanOrEqualTo(Date value) {
            addCriterion("pre_borrow_time <=", value, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeIn(List<Date> values) {
            addCriterion("pre_borrow_time in", values, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeNotIn(List<Date> values) {
            addCriterion("pre_borrow_time not in", values, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeBetween(Date value1, Date value2) {
            addCriterion("pre_borrow_time between", value1, value2, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andPreBorrowTimeNotBetween(Date value1, Date value2) {
            addCriterion("pre_borrow_time not between", value1, value2, "preBorrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeIsNull() {
            addCriterion("borrow_time is null");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeIsNotNull() {
            addCriterion("borrow_time is not null");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeEqualTo(Date value) {
            addCriterion("borrow_time =", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeNotEqualTo(Date value) {
            addCriterion("borrow_time <>", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeGreaterThan(Date value) {
            addCriterion("borrow_time >", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("borrow_time >=", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeLessThan(Date value) {
            addCriterion("borrow_time <", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeLessThanOrEqualTo(Date value) {
            addCriterion("borrow_time <=", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeIn(List<Date> values) {
            addCriterion("borrow_time in", values, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeNotIn(List<Date> values) {
            addCriterion("borrow_time not in", values, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeBetween(Date value1, Date value2) {
            addCriterion("borrow_time between", value1, value2, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeNotBetween(Date value1, Date value2) {
            addCriterion("borrow_time not between", value1, value2, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeIsNull() {
            addCriterion("pre_return_time is null");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeIsNotNull() {
            addCriterion("pre_return_time is not null");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeEqualTo(Date value) {
            addCriterion("pre_return_time =", value, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeNotEqualTo(Date value) {
            addCriterion("pre_return_time <>", value, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeGreaterThan(Date value) {
            addCriterion("pre_return_time >", value, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pre_return_time >=", value, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeLessThan(Date value) {
            addCriterion("pre_return_time <", value, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeLessThanOrEqualTo(Date value) {
            addCriterion("pre_return_time <=", value, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeIn(List<Date> values) {
            addCriterion("pre_return_time in", values, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeNotIn(List<Date> values) {
            addCriterion("pre_return_time not in", values, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeBetween(Date value1, Date value2) {
            addCriterion("pre_return_time between", value1, value2, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andPreReturnTimeNotBetween(Date value1, Date value2) {
            addCriterion("pre_return_time not between", value1, value2, "preReturnTime");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdIsNull() {
            addCriterion("return_manager_id is null");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdIsNotNull() {
            addCriterion("return_manager_id is not null");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdEqualTo(Integer value) {
            addCriterion("return_manager_id =", value, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdNotEqualTo(Integer value) {
            addCriterion("return_manager_id <>", value, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdGreaterThan(Integer value) {
            addCriterion("return_manager_id >", value, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("return_manager_id >=", value, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdLessThan(Integer value) {
            addCriterion("return_manager_id <", value, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdLessThanOrEqualTo(Integer value) {
            addCriterion("return_manager_id <=", value, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdIn(List<Integer> values) {
            addCriterion("return_manager_id in", values, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdNotIn(List<Integer> values) {
            addCriterion("return_manager_id not in", values, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdBetween(Integer value1, Integer value2) {
            addCriterion("return_manager_id between", value1, value2, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnManagerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("return_manager_id not between", value1, value2, "returnManagerId");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIsNull() {
            addCriterion("return_time is null");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIsNotNull() {
            addCriterion("return_time is not null");
            return (Criteria) this;
        }

        public Criteria andReturnTimeEqualTo(Date value) {
            addCriterion("return_time =", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotEqualTo(Date value) {
            addCriterion("return_time <>", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeGreaterThan(Date value) {
            addCriterion("return_time >", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("return_time >=", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeLessThan(Date value) {
            addCriterion("return_time <", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeLessThanOrEqualTo(Date value) {
            addCriterion("return_time <=", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIn(List<Date> values) {
            addCriterion("return_time in", values, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotIn(List<Date> values) {
            addCriterion("return_time not in", values, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeBetween(Date value1, Date value2) {
            addCriterion("return_time between", value1, value2, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotBetween(Date value1, Date value2) {
            addCriterion("return_time not between", value1, value2, "returnTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}